﻿using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Utilities;

namespace SciptableObject
{
    
    
    [CreateAssetMenu(fileName = "MiniPeopleRequestEventListSO", menuName = "ScriptableObjects/MiniPeopleRequestEventScriptableObject", order = 1)]
    public class MiniPeopleRequestEventListSO : ScriptableObject //小人需求事件列表
    {
        public List<MiniPeopleRequestEvent> eventList;
    }
    
    [Serializable]
    public class MiniPeopleRequestEvent  //小人需求事件
    {
        public int ID;
        public String eventDescribe;//事件描述
        public MiniPeopleEventType eventType;//事件类型
        public float eventDurationTime; //事件持续的时间
        public List<EventRewordData> rewordList; //事件带来的奖励
        public List<EventRewordData> punishList; //事件带来的惩罚
    }
    [Serializable]
    public class EventRewordData
    {
        public TargetValueType type;
        public float value;
    }
}